package com.mirana.module.common.model.dictpm;

import com.mirana.frame.base.model.BaseModel;
import com.mirana.frame.db.base.anno.ColumnPlus;
import com.mirana.frame.db.base.anno.FKPlus;
import com.mirana.frame.db.base.anno.Notes;
import com.mirana.frame.db.base.anno.TablePlus;
import lombok.Data;

@Data
@Notes("售中项目实施计划记录表")
@TablePlus(name = "dict_sz_practice_record")
public class DictSzPracticeRecord extends BaseModel {

    @Notes("实施计划id，外键")
    @ColumnPlus()
    @FKPlus(tableClass = DictSzPracticePlan.class, column = "id")
    private Long practice_plan_id;

    @Notes("实施记录说明")
    @ColumnPlus(default_val = "''", length = "50")
    private String record_explain;

    @Notes("实施记录状态，默认0，0尚未实施，1进行中，2已完成")
    @ColumnPlus(default_val = "0", length = "2")
    private int record_state;

    @Notes("实施记录文档id")
    @ColumnPlus()
    @FKPlus(tableClass = DictPlanDoc.class, column = "id")
    private Long plandoc_id;

    @Notes("所在精度")
    @ColumnPlus(default_val = "''", length = "50")
    private String longitude;

    @Notes("所在维度")
    @ColumnPlus(default_val = "''", length = "50")
    private String latitude;

    @Notes("所在位置")
    @ColumnPlus(default_val = "''", length = "200")
    private String location_info;

}
